<?php
// $Id: page.tpl.php,v 1.18.2.1 2009/04/30 00:13:31 goba Exp $
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  <head>
    <?php 	print $head ?>
    <title><?php
	print $head_title ?></title>
	<?php 	global $base_url;?>
	   <link type="text/css" rel="stylesheet" media="all" href="<?php echo $base_url.'/'.path_to_theme().'/mypage.css';?>" />

   <?php

	 print phptemplate_get_ie_styles(); 

	 print $styles;
     print $scripts;
	 ?>

  </head>
  <body>

    <div class="wrapper"><!-- ************************* Wrappper div Start here *******************************  -->
<div class="headerarea1"><!-- *** Headerarea div Start here ***  -->
    	<div class="logo_welcome">
            <div class="login_area"><!-- login area div start here -->
                <?php print $top_right;?>
             </div>
             <div class="logoarea">
                <?php if ($logo) { ?><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>">
<img src="<?php print $logo ?>"  width="258" height="80" alt="<?php print t('Home') ?>" /></a><?php } ?>
            </div>
            
    	</div>
        <div class="menu_post_area"><!-- menu post_area div start here -->
        	<div class="menu_area">
            <?php if (isset($primary_links)) : ?>
          <?php print theme('links', $primary_links, array('class' => 'menu')) ?>
        <?php endif; ?>
            </div>
			
        </div><!-- menu post_area div END here -->  
		<div class="about_profile">
<?php if ($show_messages && $messages): print $messages; endif; 
       print $content; ?>
      </div>
    <?php if(arg(2) != "edit"){?>
</div>
<?php } ?>

	    <!-- *** Headerarea div End here ***  -->


	    <!-- *** Profile area div End here ***  -->

	    <!-- *** Profile area div End here ***  -->

<?php if(arg(2) != "edit"){?>
<div class="test_pagearea">
	<div class="page_place">
		<div class="leftarea">
		  <?php print $left;?>
		 </div>
		<div class="edit_content_area">
				<div class="add_widget">
				          <?php if ($show_messages && $messages): print $messages; endif; ?>

						  <?php print $widget;?>

               </div>
		  <div class="widgets">
		    <div id="columns">
              </div>
           </div>
		</div>
	</div>
    <?php print $footer;?>
</div>
<?php } ?>



    <div class="footerarea"><!-- *** Footerarea div Start here ***  -->
    	<p> <a href="#">Home</a> <a href="#">About us</a> <a href="#">Contact us</a> Copyrights reserved  
        	<a href="#">Privacy policy</a> <a href="#">Terms &amp; conditions</a></p>
    </div><!-- *** Footerarea div End here ***  -->
</div>
<!--  </div> -->
<!-- /layout -->

  <?php print $closure ?>
  </body>
</html>
